package testcasegeneration

import (
	"math/rand"
	"strconv"
	"time"
)

//[left,right]
var lastRandSeed int64 = 129344

func randomIntData(left int, right int) int {
	rand.Seed(int64(time.Now().UnixNano()) + lastRandSeed)
	randData := rand.Intn(right-left) + left
	lastRandSeed = (lastRandSeed + int64(randData) + 3) % 1000000009
	return randData
}

func randomInt(left int, right int) string {
	return strconv.Itoa(randomIntData(left, right))
}
